package LeetCode.BitCompute;
//位运算6 不用额外变量交换两个整数
//[程序员代码面试指南 ：P317]

public class Test6 {
    public static void change(int a,int b){
        a = a ^ b;
        b = a ^ b;
        a = a ^ b;
        System.out.println("a= "+a+" b="+b);
    }

    public static void main(String[] args) {
        int a=10;
        int b=233;
        change(a,b);
    }
}
